package org.mat.ipaas.ucenter.service.api.system;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.mat.framework.lang.dto.MatApiResponse;
import org.mat.ipaas.ucenter.service.dto.system.entity.SysDataLogDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 系统数据日志
 */
@FeignClient(name = "mat-ipaas-ucenter-service",contextId = "sys-data-log-rest-api")
public interface SysDataLogRestAPI {
	
	@RequestMapping(value = "/sys/dataLog/list", method = RequestMethod.GET)
    MatApiResponse<IPage<SysDataLogDTO>> queryPageList(SysDataLogDTO sysDataLogDTO, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
													   @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
													   @RequestParam HttpServletRequest req);

	/**
	 * 查询对比数据
	 * @param req
	 * @return
	 */
	@RequestMapping(value = "/sys/dataLog/queryCompareList", method = RequestMethod.GET)
    MatApiResponse<List<SysDataLogDTO>> queryCompareList(@RequestParam HttpServletRequest req);

	/**
	 * 查询版本信息
	 * @param req
	 * @return
	 */
	@RequestMapping(value = "/sys/dataLog/queryDataVerList", method = RequestMethod.GET)
    MatApiResponse<List<SysDataLogDTO>> queryDataVerList(@RequestParam HttpServletRequest req);

}
